<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
<h2>Hello World!</h2>
<form action="upload" method="post" enctype="multipart/form-data">
    <input type="file" name="file" id="file"/><br>
    <input type="submit" value="文件上传"/>
</form>
<hr>
<form action="uploadFiles" method="post" enctype="multipart/form-data">
    <input type="file" name="multipartFile"/><br>
    <input type="file" name="multipartFile"/><br>
    <input type="file" name="multipartFile"/><br>
    <input type="submit" value="文件上传"/>
</form>
<hr>
下载文件
<img src="http://192.168.59.135:9000/xdkj-edu/96baee4cfe414d9ea63da9a66795db68.jpg" alt=""
     name="96baee4cfe414d9ea63da9a66795db68.jpg"
     onclick="downloadImg(this.name)">
<script>
    function downloadImg(src) {
        location.href = "downloadFile?fileName=" + src;
    }
</script>
</body>
</html>
